<template>
  <div :class="['x-'+schema.inputType, `input-${schema.size||'md'}`]">
    <div v-for="option in schema.options" :class="schema.inline?schema.inputType+'-inline':schema.inputType">
      <label>
        <input
          :type="schema.inputType"
          v-model="model[schema.name]"
          :name="schema.name"
          :disabled="schema.disabled">
        {{option.lable||option}}
      </label>
    </div>
  </div>
</template>
<script>
import XBase from './XBase.vue'
export default {
  name: 'XRadio',
  extends: XBase
}
</script>
<style></style>
